#ifndef __LOCK_H
#define __LOCK_H
#include <pthread.h>

#define lock(t) pthread_mutex_lock((&t))
#define trylock(t) pthread_mutex_trylock((&t))
#define unlock(t) pthread_mutex_unlock((&t))
#define waite(t, c) pthread_cond_wait((&t), (&c))
#define notify_one(c) pthread_cond_signal((&c))

#endif